﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace yq.Exchange
{
    /// <summary>
    /// 使用wcf模式
    /// </summary>
    internal class Wcf : ExchangeIBase
    {
        /// <summary>
        /// wcf获取方法
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="rv"></param>
        /// <returns></returns>
        public T Create<T>(RefValue rv) where T : class
        {
            //内部已有方法缓存
            return WcfClient.Create<T>(rv.Web + rv.Interface + ".svc");
        }
    }
}
